package com.chapter1.basic.bag;

import org.junit.Test;

/** 
 * @ClassName: TestBag 
 * @Description: TODO(这里用一句话描述这个类的作用) 
 * @author minjun minjun@bw30.com
 * @date 2015-2-25 上午12:43:23 
 *  
 */
public class TestBag {

	@Test
	public void testMyBag(){
		Bag<String> bag=new Bag<String>();
		bag.add("jack");
		bag.add("tom");
		bag.add("andy");
		
		for(String s:bag){
			System.out.println(s);
		}
		
		System.out.println(bag.size());
		
		bag.add("bbb");
		
		System.out.println("------------");
		for(String s:bag){
			System.out.println(s);
		}
		System.out.println(bag.size());
	}
}
